package com.feidee.bigdata.controller;

import com.feidee.bigdata.domain.Order;
import com.feidee.bigdata.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:CHQ
 * @Date:2020/5/11 17:39
 * @Description
 */
@RestController
public class OrderController {
    @Autowired
    private OrderService orderServer;

    @RequestMapping("/test")
    public void test(@RequestBody Order order) {
        orderServer.create(order);
    }
}
